package com.hxy.service;

import com.github.pagehelper.PageInfo;
import com.hxy.common.JsonResult;
import com.hxy.pojo.Business;
import com.hxy.pojo.vo.BusinessVo;
import org.springframework.stereotype.Service;

import java.util.List;


public interface BusinessService {

    PageInfo<BusinessVo> selectAllPagerBusinessVo(Integer page, int limit,BusinessVo business);
    List<Business> findBusinessNamesByid(Integer id);

    BusinessVo selectInfoByBusines(Integer id);

    JsonResult updateOne(BusinessVo business);

    JsonResult add(BusinessVo business);
    JsonResult delete(Integer id);
}
